﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Streambolics.PtBurn
{
    public class PtBurnStackInfo
    {
        private PtBurnJobServer _Server;
        private int _StackNo;

        internal PtBurnStackInfo (PtBurnJobServer aServer, int aStackNo)
        {
            _Server = aServer;
            _StackNo = aStackNo;
        }

        public int RemainingDiscs
        {
            get
            {
                switch (_StackNo)
                {
                    case 0:
                        return _Server.SystemSection["DiscsInLeftBin"].IntegerValue;
                    case 1:
                        return _Server.SystemSection["DiscsInRightBin"].IntegerValue;
                }
                return 0;
            }
        }

        public PtBurnMediaType MediaType
        {
            get
            {
                return PtBurnMediaType.CdRom;
            }
        }
    }
}
